package com.hp.gxw.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hp.gxw.entity.CostEquipment;
import com.hp.gxw.mapper.CostEquipmentMapper;
import com.hp.gxw.service.ICostEquipmentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author huangping
 * @since 2024-01-04
 */
@Service
public class CostEquipmentServiceImpl extends ServiceImpl<CostEquipmentMapper, CostEquipment> implements ICostEquipmentService {

    @Resource
    private CostEquipmentMapper costEquipmentMapper;

    @Override
    public List<CostEquipment> depreciationListInfo(String happenMonth) {
        return costEquipmentMapper.queryEquipmentDepreciation(happenMonth+"-01", happenMonth);
    }

    @Override
    public List<CostEquipment> leaseListInfo(String happenMonth) {
        return costEquipmentMapper.queryEquipmentLease(happenMonth+"-01", happenMonth);
    }
}
